How to code a countdown timer in python